import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Bus from 'assets/utils/bus'
// import './registerServiceWorker'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import VueScroller from 'vue-scroller'

import * as utils from 'assets/utils/utils.js'
import Focus from '@/core/directive'
// 引入 echarts 核心模块，核心模块提供了 echarts 使用必须要的接口
import * as echarts from 'echarts'
// // 引入提示框，标题，直角坐标系组件，组件后缀都为 Component
// import {
//   TitleComponent,
//   TooltipComponent,
//   GridComponent
// } from 'echarts/components'
// // 引入柱状图图表，图表后缀都为 Chart
// import {
//   BarChart, PieChart
// } from 'echarts/charts'
// // 引入 Canvas 渲染器

// import {
//   CanvasRenderer
// } from 'echarts/renderers'

// echarts.use([BarChart, PieChart, TitleComponent, TooltipComponent, GridComponent, CanvasRenderer])

Vue.prototype.echarts = echarts
Vue.prototype.Bus = Bus
Vue.prototype.utils = utils

Vue.use(Focus)
Vue.use(ElementUI)
Vue.use(VueScroller)
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
